package com.coocaa.internship.exception;

import lombok.Getter;

/**
 * @Description: 全局统一异常类
 * @Author: zwh
 * @Date: 2019-07-28
 * @Time: 12:40
 */
@Getter
public class BaseException extends RuntimeException {
    /**
     * 异常状态码
     */
    private Integer code;

    /**
     * 异常信息
     */
    private String message;

    public BaseException(Integer code, String message) {
        this.code = code;
        this.message = message;
    }
}
